<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<style>
#admin_product1 {
	font: 15px/1.2 "돋움", dotum, bold;
}

th {
	background-color: #f1f1f1
}

select {
	width: 500px;
}

select option {
	width: 500px;
}
</style>
<script type="text/javascript">
	$(document).ready(function() {

		//결제
		$("#BtnPay_Ok").click(function() {
			
			
			
		/* 	location.href = "/jeons/"; */

		});
		
		
		//테스트 버튼
		$('#BtnTest').click(function(){
		
		alert('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
			 var obj = $("#basket_info").serialize()+"&"+$("#frm").serialize()+"&"+$("#delivery").serialize()+"&"+$("#pay_ok").serialize(); 
			 alert('bbbbbbbbbbbbbbbbbbbbbb');
			 str = escape(encodeURIComponent(obj));
			 alert(str);
			alert(obj);
			$.post('/jeons/basket/basket_update',obj,function(data){
				alert('aaaa');
			
			});
		});
	});
		
		
	
		
		$("#goods_price_pa").each(function(){
			tmp  = $("#goods_price_pa").val();
			$("#rrr").val(tmp);
			
		});

		//결제금액값 읽어오기
		$('#goods_price_pb').each(function(){
			var tmp = $('#goods_price_pb').val();
			$("#result_price").val(tmp);
		});
		//상품명 값 읽어오기
		$("#goods_name").each(function(){
			var tmp = $("#goods_name").val();
			$("#result_name").val(tmp);
		});
		
	
</script>
<input type="text" id="temp"/>
<input type="text" id="tempName"/>
<div id="admin_product1">
<input type="text" id="rrr"/>
	<table border="0" width="650px" height="50" id="send">
		<tr>
			<td colspan="2" bgcolor="#000000" height="1"></td>
		</tr>
		<tr>
			<td colspan="2" bgcolor="#ffffff" height="1"></td>
		</tr>
		<tr>
			<th align="center" colspan="2">상품명</th>
		</tr>
		<tr>
			<td colspan="2" bgcolor="#ffffff" height="1"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="text" name="goods_names" size="80px" id="result_name"/></td>
		</tr>
		<tr>
			<th align="center" colspan="2">결제금액</th>
		</tr>
		<tr>
			<td colspan="2" bgcolor="#ffffff" height="1"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="text" name="pay" size="80px" value="${goods_price_result}" id="result_price"/></td>
		</tr>
		<tr>
			<th align="center" colspan="2">입금자명</th>
		</tr>
		<tr>
			<td colspan="2" bgcolor="#ffffff" height="1"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="text" name="p_name" size="80px" /></td>
		</tr>
		<tr>
			<th align="center" colspan="2">은행선택</th>
		</tr>
		<tr>
			<td colspan="2" bgcolor="#ffffff" height="1"></td>
		</tr>
		<tr>
			<td colspan="2"><select name="p_bank">
					<option value="kb">국민은행 217802-04-160443</option>
					<option value="nh">농협 4156-456-789</option>
			</select></td>
		</tr>
		<tr>
			<td colspan="2" bgcolor="#000000" height="1"></td>
		</tr>
	</table>
	<div align="center">
		<button type="button" id="BtnPay_Ok">결제</button>
		<button type="button" id="BtnTest">테스트버튼</button>
		&nbsp;
		<button type="button" id="BtnClose">닫기</button>
	</div>
</div>